//
//  HREvaluationCell.h
//  haierapp
//
//  Created by gaotangzhang on 14-9-3.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import <UIKit/UIKit.h>

#define CELL_IDENTIFIER_EVALUATE @"evalutationCell"
#define CELL_HEIGHT_EVALUATE 224.0f

@protocol HREvaluationScoreDelegate <NSObject>

//评价商品分数
-(void)evaluateProductScore:(CGFloat)score andIndex:(int)index;

//评价商品内容
-(void)evaluateProductContent:(NSString *)content andIndex:(int)index;

@end

@interface HREvaluationCell : UITableViewCell<EDStarRatingProtocol,UITextFieldDelegate>

@property(nonatomic,assign) int index;
@property(nonatomic,weak) id<HREvaluationScoreDelegate> delegate;

//设置分数
-(void)setRating:(CGFloat)rating;

//填充数据
-(void)configWithData:(id)data;

@end
